<?php session_start();

require_once("netease_api.php");

$access_token = $_SESSION['access_token'];

netease_add_weibo($access_token['oauth_token'], $access_token['oauth_token_secret'], $_REQUEST['content']);

header('Location:' . $_SERVER['HTTP_REFERER']);
?>